
const net = require('net')

var ser = net.createServer(function (conn) {
    console.log("net cli connect")
    conn.on('end', function () {
        console.log('cli closed')
    })
    conn.write('hello cli\n')
    conn.pipe(conn)
})

ser.listen(8811, function () {
    console.log('net server start!')
})

